<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<link rel="stylesheet" media="screen" type="text/css" href="__THEMES__/style/layout.css" />
		<script type="text/javascript" src="__JS__/jQuery/jquery.js"></script>
		<script type="text/javascript" src="__JS__/jQuery/plugin/troperate.js"></script>
		<style type="text/css">
			dl.reply                    { border : 1px solid #e1e7f4; background:#f0f5ff; margin:5px; padding : 10px 15px; }
		</style>
	</head>
	<body>
		<include file="Public:position" />
		<div class="a_table">
        <table width="100%">
            <tr style="background: #f0f7ff; font-weight: bold;">
                <td width="20"><input type="checkbox" name="all" /></td>
                <td width="60" align="center">编号</td>
                <td width="90" align="center">评论人</td>
                <td align="center">评论内容</td>
                <td align="center">评论文档</td>
                <td width="100" align="center">评论时间</td>
                <td width="160" align="center">操作</td>
            </tr>
            <volist id="vo" name="list">
            <tr rel="{$vo['id']}" class="row_color"<?php if( ( $i % 2 ) == 0 ){ ?> bgcolor="#f9f9f9"<?php } ?>>
                <td><input type="checkbox" name="ids[]" value="{$vo.id}" /></td>
                <td align="center">{$vo['id']}</td>
                <td align="center">{$vo.username}</td>
                <td>
                	{$vo.msg}
                	<?php
                		$reply_list = $list_model->where("pid='".$vo['id']."'")->select();
                		foreach($reply_list as $key => $val){
                	?>
                	<dl class="reply">
                        <dt>{$val.username} 于 {$val.dtime|date=C('DEFAULT_DATE_FORMAT'),###} 回复 {$vo.username}</dt>
                        <dd>{$val.msg}</dd>
                    </dl>
                	<?php
                		}
                	?>
                	
                </td>
                <td align="center">{$vo.arctitle}</td>
                <td align="center">{$vo.dtime|date=C('DEFAULT_DATE_FORMAT'),###}</td>
                <td align="center">
                    <a href="{:U('edit',array(
                    'id' => $vo['id'],
                    'cid' => $vo['cid'],
                    'tag' => $_GET['tag'],
                ))}" class="edit_model">编辑</a><span class="action_line">&nbsp;&nbsp;|&nbsp;&nbsp;</span><a href="{:U('delete',array('id' => $vo['id']))}" class="del_node" rel="{$vo.id}">删除</a>
                </td>
            </tr>
            </volist>
        </table>
        </div>
        <div class="page">{$page}</div>
	</body>
</html>